package com.youlai.boot.word.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Document(collation = "word_list")
public class WordListEntity {
    @Id
    private String id; // MongoDB文档的ID，通常是ObjectId类型
    private String name; //
    private String type; //

    public String date;
    public Date createdAt;

    public WordListEntity(String id, String name, String type) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.createdAt = new Date();
    }

    public WordListEntity() {

    }


}
